﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace FlyingHat.Core.Migrations
{
    public partial class _20211217 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "BlockDay",
                table: "UserLog",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "CreatedTime", "LastLoginTime", "ModifyTime", "Password", "Salt" },
                values: new object[] { new DateTime(2021, 12, 17, 21, 48, 5, 608, DateTimeKind.Local).AddTicks(1), new DateTime(2021, 12, 17, 21, 48, 5, 608, DateTimeKind.Local).AddTicks(5), new DateTime(2021, 12, 17, 21, 48, 5, 607, DateTimeKind.Local).AddTicks(9987), "75A30E14737187E5D47829B62E8CA2EE", "09316C274333E3181819F0BFADC5CF1EFF2F090F3EEB9F8B31E795F83D06CC58DFFE1966" });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "BlockDay",
                table: "UserLog");

            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "CreatedTime", "LastLoginTime", "ModifyTime", "Password", "Salt" },
                values: new object[] { new DateTime(2021, 12, 17, 12, 38, 26, 314, DateTimeKind.Local).AddTicks(5633), new DateTime(2021, 12, 17, 12, 38, 26, 314, DateTimeKind.Local).AddTicks(5641), new DateTime(2021, 12, 17, 12, 38, 26, 314, DateTimeKind.Local).AddTicks(5626), "BD8D115B028290AF7DBF4D6EC5C77857", "FBDEA6BC28BBF2E62E233E1E3C2B05AE5F6220111DBB38DDCC312522FD4BC8819A80D2C6" });
        }
    }
}
